package com.zhiyou.springcloud.apigateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@SpringBootApplication
public class ApiGatewayApplication {

	//在实现了自定义过滤器之后，它并不会直接生效，我们还需要为其创建具体的Bean才能启动该过滤器
	/*@Bean
	public LogFilter logFilter(){
		return new LogFilter();
	}*/


	public static void main(String[] args) {
		SpringApplication.run(ApiGatewayApplication.class, args);
	}
}
